<!DOCTYPE html>
<html>

	<head lang="en">
		<meta charset="UTF-8">
		<title>上传文件</title>
		<style>
			#main {
				margin: 0 auto;
				width: 500px;
			}
			
			dl {
				clear: both;
				width: 100%;
			}
			
			dt {
				float: left;
				width: 100px;
				text-align: right;
			}
		</style>
		<script type="text/javascript">
			function add(b) {
				var copy = document.getElementById("upload").cloneNode(true);
				var up = document.getElementById("main");
				up.insertBefore(copy, b.parentNode);
			}
		</script>
	</head>

	<body>
		<div id="main">
			<dl id="upload">
				<dt>文件路径：</dt>
				<dd><input name="fileImages" type="file" /></dd>
			</dl>
			<div id="addBtn"><input id="up" type="button" value="再上传一个文件" onclick="add(this)" /></div>
		</div>
	</body>

</html>